//
//  TTBundle.m
//  TTKit
//
//  Created by Apple on 2017/12/21.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "TTBundle.h"

@implementation TTBundle
+ (instancetype)tt_Bundle
{
    static TTBundle *ttBundle = nil;
    if (ttBundle == nil) {
        ttBundle = [TTBundle bundleWithPath:[[NSBundle mainBundle]
                                             pathForResource:@"TTRes" ofType :@"bundle"]];
    }
    return ttBundle;
}

+ (UIImage *)tt_refreshImage
{
    static UIImage *refreshImage = nil;
    if (refreshImage == nil) {
        refreshImage = [[UIImage imageWithContentsOfFile:[[self tt_Bundle] pathForResource:@"refresh@2x" ofType:@"png"]]
                        imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
    }
    return refreshImage;
}
@end
